Skip to content

test: always use package manager force option in version add command E2E#26720

Merged
clydin merged 1 commit intoangular:16.2.xfrom
clydin:e2e/test-add-force
Dec 20, 2023
Merged

test: always use package manager force option in version add command E2E#26720
clydin merged 1 commit intoangular:16.2.xfrom
clydin:e2e/test-add-force

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Dec 20, 2023

The goal of the commands/add/version-specifier test is to check the behavior of the ng add command itself and not that of the package manager. To do so requires adding a package using a variety of different version specifiers. Some of which a package manager may consider incompatible with the hosting project. However, this is not relevant to the selection logic of the ng add command which should select the version as designed. To verify it does so within the Angular CLI, the installed version needs to be checked. As a result the package manager must install the package.

@clydin clydin force-pushed the e2e/test-add-force branch from 2ce1235 to 2c42e67 Compare December 20, 2023 17:52
The goal of the `commands/add/version-specifier` test is to check the behavior
of the `ng add` command itself and not that of the package manager. To do so
requires adding a package using a variety of different version specifiers. Some
of which a package manager may consider incompatible with the hosting project.
However, this is not relevant to the selection logic of the `ng add` command
which should select the version as designed. To verify it does so within the
Angular CLI, the installed version needs to be checked. As a result the package
manager must install the package.
@clydin clydin force-pushed the e2e/test-add-force branch from 2c42e67 to e48bb0f Compare December 20, 2023 17:55
@clydin clydin marked this pull request as ready for review December 20, 2023 18:28
@clydin clydin requested a review from alan-agius4 December 20, 2023 18:28
@clydin clydin added the target: lts This PR is targeting a version currently in long-term support label Dec 20, 2023
Copy link
Copy Markdown
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Dec 20, 2023
@clydin clydin merged commit 8314369 into angular:16.2.x Dec 20, 2023
@clydin clydin deleted the e2e/test-add-force branch December 20, 2023 18:30
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: lts This PR is targeting a version currently in long-term support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants